package com.guoguo.service;

import com.guoguo.base.PageBean;
import com.guoguo.entity.Groups;
import com.guoguo.entity.vo.GroupVO;

import java.util.Date;
import java.util.List;

/**
 * Created by KLSD on 2017/10/23.
 */
public interface GroupsService {
    PageBean<GroupVO> selectgroupList(int pageNumber, int pageSize);

    List<Groups> getgroupList();

    /**
     * 按条件查询序号逆序
     *
     * @return
     */
    PageBean<GroupVO> selectBySortDesc(String groupName, Integer isShow, int pageNum, int pageSize);

    /**
     * 按条件查询序号正序
     *
     * @return
     */
    PageBean<GroupVO> selectBySortAsc(String groupName, Integer isShow,  int pageNum, int pageSize);

    /**
     * 按条件查询创建时间正序
     *
     * @return
     */
    PageBean<GroupVO> selectByCreateTimeAsc(String groupName, Integer isShow,  int pageNum, int pageSize);

    /**
     * 按条件查询创建时间逆序
     *
     * @return
     */
    PageBean<GroupVO> selectByCreateTimeDesc(String groupName, Integer isShow, int pageNum, int pageSize);

    Groups selectByPrimaryKey(String groupId);

    Groups addGroup(String groupId, String groupName, String groupDescription, int groupType, Date createTime, Date updateTime);
}
